﻿/// Developed for Hybrid Platform
/// Initialize app settings
//-----------------------------------------------------------------------------------------------------------------------------
//Block User Interface while loading content

/// Commented Intentionally
/// Example Styles

//alert,warning,error,information,success
//App.scrollTo();

var BlockContentPanel = function () {
    App.blockUI($("#content"));
}

var UnBlockContentPanel = function () {
    App.unblockUI($("#content"));
}

var DemoBlockContentPanel = function () {
    App.blockUI($("#content"));
    setTimeout(function () {
        App.unblockUI($("#content"));
        noty({
            text: '<strong>Notyfication.</strong>',
            type: 'information',
            timeout: 3000
        });
    }, 5000);
}
//-----------------------------------------------------------------------------------------------------------------------------
//Show notification popup on top of the window

var ShowNotyfication = function (options) {    
    noty({
        text: '<strong>' + options.msg + '</strong>',
        type: (options.msgType && options.msgType != '') ? options.msgType : 'information',
        timeout: (options.msgTimeout && options.msgTimeout>0) ? options.msgTimeout : 25000
    });
}